package com.nondo.rdp.finance.endpoint.wap.app;

import com.nondo.rdp.core.common.PropertiesTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller("apiWapAnalysis")
@RequestMapping("/wap/app/analysis")
public class AnalysisEndpoint {
    @Autowired
    private Environment environment;
    /**
     * 分析详情
     * @param request
     * @param response
     * @return
     */
    @RequestMapping("/info")
    public ModelAndView info(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView("wap/app/analysis/info");

        mv.addObject("baseUrl", environment.getProperty("app.base_url"));

        return mv;
    }
}